package mongos

import (
	"context"
	"zuhao-seucre/internal/enums"
	"zuhao-seucre/internal/service"

	"zuhao-seucre/api/mongos/v1"
)

func (c *ControllerV1) MongosDashbord(ctx context.Context, req *v1.MongosDashbordReq) (res *v1.MongosDashbordRes, err error) {
	count := service.Tag().GetAccountTagCount(ctx, enums.ResourceTypeMongo)
	res = new(v1.MongosDashbordRes)
	res.MongoNum = count
	return
}
